<script>
import {
  defineComponent,
  reactive,
  toRefs
} from 'vue'

export default defineComponent({
  name: 'ValidateCheck',
  props: {
    check: {
      type: Boolean,
      default: true
    }
  },
  setup() {
    const state = reactive({})

    return {
      ...toRefs(state)
    }
  }
})
</script>

<template>
  <div class="component-validate-check-container">
    <div class="validate-status" :class="check ? 'check-true' : 'check-false'" />
  </div>
</template>

<style lang="scss">
.component-validate-check-container {
  height: 28px;
  display: flex;
  align-items: center;

  .validate-status {
    height: 14px;
    background-size: cover;

    &.check-true {
      width: 14px;
      background-image: url('../assets/components/validate-check--true.png');
    }

    &.check-false {
      width: 64px;
      background-image: url('../assets/components/validate-check--false.png');
    }
  }
}
</style>
